package cn.fintecher.gis.entity;

import cn.fintecher.gis.enums.LandType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name = "land_quo")
@Data
@Api(value = "土地利用现状",description = "土地利用现状")
public class LandQuo extends BaseEntity{

    @ApiModelProperty(notes = "编号")
    private String code;

    @ApiModelProperty(notes = "等级(1/2/3)")
    private Integer grade;

    @ApiModelProperty(notes = "名称")
    private String name;

    @ApiModelProperty(notes = "类型")
    @Enumerated(EnumType.STRING)
    private LandType type;

    @ApiModelProperty(notes = "上级id")
    private String parentId;
}
